
package com.xxx.rpc.sample.server.remote.impl;

import com.xxx.rpc.sample.bean.Person;
import com.xxx.rpc.sample.remote.HelloService;
import com.xxx.rpc.server.RpcService;

@RpcService(value = HelloService.class, version = "sample.hello2")
public class HelloServiceImpl2 implements HelloService {

	@Override
	public String hello(String name) {
		return "你好! " + name;
	}

	@Override
	public String hello(Person person) {
		return "你好! " + person.getFirstName() + " " + person.getLastName();
	}
}
